import React from 'react';
import "./index.less";
import {LeftOutlined} from "@ant-design/icons"

interface Props{
    history:any,
    children:any
}

export default (props:Props)=>{
    return(
        <div className="nav-header">
            <LeftOutlined onClick={props.history.goBack} />
            <span className="content">{props.children}</span>
        </div>
    )
}